Icon
      of LineLeader block

LightSensorArray Block

This block interfaces with LightSensorArray from mindsensors.com.
This block will not work with NXTLineLeader sensor.

Note: Ensure to calibrate your sensor for your environment.

Display Settings

LSA Block
  1. Indicates the Port on which this sensor would be connected.
  2. Indicates operation that will be performed by this block instance (you can change this on the control panel of this block).
  3. Data input/output plugs.

Configuring the LightSensorArray Block

LSA-Panel

  1. NXT's port to connect this sensor.
  2. The I2C address of this sensor.
  3. Operation performed by this instance of the block, Supported Operations are as follows:
    1. Read Calibrated Values.
    2. Read un-calibrated Values
    3. Calibrate White Color **
    4. Calibrate Black Color **
    5. Wakeup
    6. Sleep
** Use these Operations only if you are writing a program on NXT that will re-calibrate the sensor.
Read 'Calibration' section below if you need to calibrate before using it.

LightSensorArray Block's Data Hub Plugs

LSA-hub
The plugs are as follows:
  1. Sensor 1 Reading
  2. Sensor 2 Reading
  3. Sensor 3 Reading
  4. Sensor 4 Reading
  5. Sensor 5 Reading
  6. Sensor 6 Reading
  7. Sensor 7 Reading
  8. Sensor 8 Reading
  9. Operation
  10. Yes/No - Boolean indicator for communication error (if any). 

Calibration

Calibration process requires you to 'Teach' the sensor your white color and Black color. The Block helps you perform these steps.
Connect your NXT to your PC using USB cable (not Bluetooth) and connect the sensor to NXT on appropriate port, then click on LightSensorArray icon in the program area.

Your panel would display following:

calibration-01

Calibrate Now button (1) will be active, and the sensor information will be displayed in the area below (2).
To calibrate, click on Calibrate Now button, which will display further instructions in area (3).
Follow the on-screen instructions to complete calibration steps.

If you need more details, please refer to User Guide.